import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;



public class WangCheng 
{





	public static void main(String[] args) 
	{
//         Date d = new Date();
//         System.out.println(d);
//        GregorianCalendar deadline = new GregorianCalendar();
//        deadline.set(Calendar.YEAR,2011);
//        int year = deadline.get(Calendar.YEAR);
//        System.out.println(year);
//        
        
        
//		GregorianCalendar now = new GregorianCalendar();
//		int month = now.get(Calendar.MONTH);
//		int monthday = now.get(Calendar.DAY_OF_MONTH);
//		int year = now.get(Calendar.YEAR);
//		System.out.println(month);
//		System.out.println(monthday);
//		System.out.println(year);
		GregorianCalendar d = new GregorianCalendar();
		int firstDayOfWeek = d.getFirstDayOfWeek();
		System.out.println( firstDayOfWeek);
		
//		int today = d.get(Calendar.DAY_OF_MONTH);
//		int month = d.get(Calendar.MONTH);
//		d.set(Calendar.DAY_OF_MONTH,1);
//		int weekday = d.get(Calendar.DAY_OF_WEEK);
//		System.out.println(weekday);
//	    


	}
}
